Skip to content

Conversation

@Emilgardis
Copy link

resolves #656 by adding a new tooltip on shift that displays what items you need to craft

Image

nei.bookmark.crafting_chain.missing=Missing Items
nei.bookmark.crafting_chain.output=Results
nei.bookmark.crafting_chain.remainder=Remainders
nei.bookmark.crafting_chain.needed=Required Crafts
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the name :)

Comment on lines +172 to +177
if (this.lastShiftKey) {
for (Map.Entry<BookmarkItem, Long> item : this.math.requiredAmount.entrySet()) {
if (item.getKey().type == BookmarkItem.BookmarkItemType.RESULT && item.getValue() != 0)
craftingNeeded.add(item.getKey().getItemStack(item.getValue()));
}
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since I'm not familiar with this code base I'm unsure if this is the best way to do it, would also want to sort the entries in some kind of order, like most "furthest" away craft is sorted earlier.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could probably use toposort to do that

@Dream-Master Dream-Master requested review from a team and slprime November 10, 2025 20:52
@Dream-Master Dream-Master added the 🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta label Nov 14, 2025
@Dream-Master
Copy link
Member

@slprime can you help here or review it ?

@PlayfulPiano
Copy link

Functionally I"ll say it lgtm, but I can't comment about the code.

image

@slprime slprime merged commit 7b83456 into GTNewHorizons:master Dec 28, 2025
1 check passed
@Emilgardis Emilgardis deleted the add-required-tooltip branch December 28, 2025 17:58
@Dream-Master Dream-Master removed the 🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta label Dec 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recipe/crafting chain- Missing Crafted Items

6 participants